﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="DeliveryOrderCodeEdit.aspx.cs" Inherits="NetDon.OA.Portal.Admin.DeliveryOrderCodeEdit" %>

<%@ Register TagPrefix="uc1" TagName="RequiredMark" Src="~/Controls/RequiredMark.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <NetDon:FormPanel runat="server" RepeatColumns="1" ID="formCurrency">
        <Items>
            <NetDon:FormItem HeaderText="交货单类型">
                <ContentTemplate>
                    <asp:DropDownList ID="ddlDeliveryCodeType" DataSourceID="ddsDeliveryCodeType" 
                        AppendDataBoundItems="true" 
                        runat="server" DataTextField="Name" DataValueField="Value">
                    </asp:DropDownList>
                    <NetDon:DictionaryDataSource ID="ddsDeliveryCodeType" runat="server" CategoryName="交货单类型"
                        EmptyItemType="Select">
                    </NetDon:DictionaryDataSource>
                    <uc1:RequiredMark ID="RequiredMark11" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlDeliveryCodeType"
                        Display="None" ErrorMessage="请选择交货单类型" SetFocusOnError="True">
                    </asp:RequiredFieldValidator>
                </ContentTemplate>
            </NetDon:FormItem>
            <NetDon:FormItem HeaderText="交货单编号（前缀）">
                <ContentTemplate>
                    <asp:TextBox ID="txtDeliveryOrderCodePrefix" runat="server" Text='<%#Bind("DeliveryOrderCodePrefix") %>'
                        MaxLength="50"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDeliveryOrderCodePrefix"
                        Display="None" SetFocusOnError="True" ErrorMessage="请输入交货单编号（前缀）"></asp:RequiredFieldValidator>
                </ContentTemplate>
            </NetDon:FormItem>
        </Items>
    </NetDon:FormPanel>
    <div style="margin-top: 5px; text-align: center">
        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" />
        <asp:Button ID="btnCancel" runat="server" Text="取消" CausesValidation='false' />
    </div>
    <asp:ValidationSummary runat="server" ShowMessageBox="true" ShowSummary="false" DisplayMode="BulletList"
        ID="summary" />
</asp:Content>
